package top.buyibuyi.course.service.Impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.buyibuyi.course.dao.SelectChooseDao;
import top.buyibuyi.course.pojo.ChooseCourse;
import top.buyibuyi.course.service.SelectChooseService;

import java.util.List;

@Service
public class SelectChooseServiceImpl implements SelectChooseService {

    @Autowired
    private SelectChooseDao selectChooseDao;
    @Override
    public List<ChooseCourse> selectChooseCourse(@Param("startPage") int startPage,@Param("limit") int limit,@Param("cname") String cname,@Param("aname") String aname) {
        return selectChooseDao.selectChooseCourse(startPage,limit,cname,aname);
    }

    @Override
    public int selectCount(ChooseCourse choose) {
        return selectChooseDao.selectCount(choose);
    }

    @Override
    public ChooseCourse selectChooseCourseById(int id) {
        return selectChooseDao.selectChooseCourseById(id);
    }

    @Override
    public ChooseCourse selectByThree(ChooseCourse chooseCourse) {
        return selectChooseDao.selectByThree(chooseCourse);
    }
}
